<%--
*@Description 
*@Author KingTeng
*@Date 2022/2/28
*@Time 8:38
--%>

<html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>

<%@include file="header.jsp"%>
<%@include file="top.jsp"%>


<div class="carousel slide" id="carousel-405420">
    <ol class="carousel-indicators">
        <li data-slide-to="0" data-target="#carousel-405420" class="active">
        </li>
        <li data-slide-to="1" data-target="#carousel-405420">
        </li>
        <li data-slide-to="2" data-target="#carousel-405420">
        </li>
    </ol>
    <div class="carousel-inner">
        <div class="carousel-item active">
            <img class="d-block w-100" alt="Carousel Bootstrap First" src="https://www.layoutit.com/img/sports-q-c-1600-500-1.jpg" />
            <div class="carousel-caption">
                <h4>
                    欢迎进行核酸检测
                </h4>
                <p>
                    做核酸检测并不是“私事”，主动配合疫情防控，是每位公民应尽的法定义务。暴力抗拒，轻则被行政拘留，重则构成犯罪。检察机关提醒，切勿因一时冲动，扰乱防疫秩序，触犯法律底线！
                </p>
            </div>
        </div>
        <div class="carousel-item">
            <img class="d-block w-100" alt="Carousel Bootstrap Second" src="https://www.layoutit.com/img/sports-q-c-1600-500-2.jpg" />
            <div class="carousel-caption">
                <h4>
                    核酸检测人人有责
                </h4>
                <p>
                    做核酸检测并不是“私事”，主动配合疫情防控，是每位公民应尽的法定义务。暴力抗拒，轻则被行政拘留，重则构成犯罪。检察机关提醒，切勿因一时冲动，扰乱防疫秩序，触犯法律底线！
                </p>
            </div>
        </div>
        <div class="carousel-item">
            <img class="d-block w-100" alt="Carousel Bootstrap Third" src="https://www.layoutit.com/img/sports-q-c-1600-500-3.jpg" />
            <div class="carousel-caption">
                <h4>
                    请申请进行核酸检测
                </h4>
                <p>
                    做核酸检测并不是“私事”，主动配合疫情防控，是每位公民应尽的法定义务。暴力抗拒，轻则被行政拘留，重则构成犯罪。检察机关提醒，切勿因一时冲动，扰乱防疫秩序，触犯法律底线！
                </p>
            </div>
        </div>
    </div> <a class="carousel-control-prev" href="#carousel-405420" data-slide="prev"><span class="carousel-control-prev-icon"></span> <span class="sr-only">Previous</span></a> <a class="carousel-control-next" href="#carousel-405420" data-slide="next"><span class="carousel-control-next-icon"></span> <span class="sr-only">Next</span></a>
</div>



            <table class="table table-bordered">

                <li>
                    <a href="${pageContext.request.contextPath}/findAll.do?page=1&size=2">
                        检测站列表
                    </a>

                    <div>
                        <table class="table">
                            <thead>
                            <tr>
                                <th>检测点ID</th>
                                <th>行政区</th>
                                <th>检测点名字</th>
                                <th>地址</th>
                                <th>联系方式</th>
                            </tr>
                            </thead>
                            <tbody>
                            <c:forEach items="${pageInfo.list}" var="stations" >
                                <tr>
                                    <td>${stations.id}</td>
                                    <td>${stations.city}</td>
                                    <td>${stations.nam}</td>
                                    <td>${stations.address}</td>
                                    <td>${stations.phone}</td>
                                </tr>
                            </c:forEach>
                            </tbody>
                        </table>
                    </div>
                </li>
            </table>

            <tr>
                <th>
                    <a href="${pageContext.request.contextPath}/findAll.do?page=1&size=${pageInfo.pageSize}">
                        首页
                    </a>
                </th>
                <th>
                    <a href="${pageContext.request.contextPath}/findAll.do?page=${pageInfo.pageNum-1}&size=${pageInfo.pageSize}">
                        上一页
                    </a>
                </th>
                <c:forEach begin="1" end="${pageInfo.pages}" var="pageNum">
                    <th>
                        <a href="${pageContext.request.contextPath}/findAll.do?page=${pageNum}&size=${pageInfo.pageSize}">
                                ${pageNum}
                        </a>
                    </th>
                </c:forEach>
                <th>
                    <a href="${pageContext.request.contextPath}/findAll.do?page=${pageInfo.pageNum+1}&size=${pageInfo.pageSize}">
                        下一页
                    </a>
                </th>
                <th>
                    <a href="${pageContext.request.contextPath}/findAll.do?page=${pageInfo.pages}&size=${pageInfo.pageSize}">
                        尾页
                    </a>
                </th>
            </tr>
</body>
</html>
